{extend	name="homepage"	/}
{block name="right"}
  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">个人资料</strong> / <small>Personal information</small></div>
      </div>

      <hr/>

      <div class="am-g">
        <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">
          

        </div>

        <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
          <form action="{:Url('admin/shopin/shopin')}" class="am-form am-form-horizontal" 	method="post">

            <label for="user-name" class="am-u-sm-3 am-form-label">上级分类 </label>          
           <select name="num" id='num' style="width:100px;margin:10px 10px 10px 30px" onchange="first(this)">
              <option value="">请选择</option>
              {volist name="res" id="vo"}
              <option value="{$vo.id}">{$vo.name}</option>
              {/volist}
            </select><br>

            <div class="am-form-group">
              <label for="name" class="am-u-sm-3 am-form-label">商品名称 </label>
              <div class="am-u-sm-9">
                <input type="text" name="shop_name" placeholder=" ">
              </div>
            </div>
          
            <div class="am-form-group">
              <label for="user-name" class="am-u-sm-3 am-form-label">排序数字 </label>
              <div class="am-u-sm-9">
                <input type="text" name="pnum" placeholder=" ">
              </div>
            </div>
              
            <label for="user-name" class="am-u-sm-3 am-form-label">上架 </label>          
            <select name="display" style="width:100px;margin:10px 10px 10px 30px">
               <option value="0">不上架</option>
               <option value="1">立刻上架</option>
             </select><br>

            <div class="am-form-group">
              <div class="am-u-sm-9 am-u-sm-push-3">
                <button type="submit" class="am-btn am-btn-primary" name="up">添加</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>

    <footer class="admin-content-footer">
      <hr>
      <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
    </footer>

  </div>

  <script>
    function first(obj){
          // alert ($(obj).val());
          $.ajax({
              url:"{:Url('admin/shopin/shopin')}",
              data:{id_num:$(obj).val()},
              dataType:'html',
              type:'post',
              success:function(data){
               
              },
              // error : function(){ }
          })
    }
  </script>
  <!-- content end -->
  {/block}

